package cate.common.table.item.spice.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.spice.row.SpiceLevelAttrRow;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "星格升级属性")
public class SpiceLevelAttrSheet extends ESheet<SpiceLevelAttrRow> {
    @Override
    public String getSheetName() {
        return "星格升级属性";
    }

    public SpiceLevelAttrRow getAttrRow(int tid, int level){
        for (SpiceLevelAttrRow row : this.getList()) {
            if (row.tid == tid && row.level == level) {
                return row;
            }
        }
        return null;
    }
}
